public class Book {
    public String getName() {
        return Name;
    }
    public void setName(String name) {
        this.Name = name;
    }
    public String getWriter() {
        return Writer;
    }
    public void setWriter(String writer) {
        this.Writer = writer;
    }
    public String getPublishingHouse() {
        return PublishingHouse;
    }
    public void setPublishingHouse(String publishingHouse) {
        this.PublishingHouse = publishingHouse;
    }
    public String getPublishingDate() {
        return PublishingDate;
    }
    public void setPublishingDate(String publishingDate) {
        this.PublishingDate = publishingDate;
    }
    private String Name;
    private String Writer;
    private String PublishingHouse;
    private String PublishingDate;
    public String toString() {
        return "Book{" +
                "书名='" + Name + '\'' +
                ", 作者='" + Writer + '\'' +
                ", 出版社='" + PublishingHouse + '\'' +
                ", 出版日期='" + PublishingDate + '\'' +
                '}';
    }
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Book book = (Book) o;
        if (!Name.equals(book.Name)) return false;
        if (!Writer.equals(book.Writer)) return false;
        if (!PublishingHouse.equals(book.PublishingHouse)) return false;
        return PublishingDate.equals(book.PublishingDate);
    }
    public int hashCode() {
        int result = Name.hashCode();
        result = 31 * result + Writer.hashCode();
        result = 31 * result + PublishingHouse.hashCode();
        result = 31 * result + PublishingDate.hashCode();
        return result;
    }
    public static void main(String[] args) {
        Book book = new Book();
        book.setName("20");
        book.setPublishingDate("17");
        book.setWriter("53");
        book.setPublishingHouse("19");
        System.out.println(book.toString());
    }
}